<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="memberships"}</td>
        </tr>
        </table>

        <p>
        <font color="red">{language text="current_membership"}: {if $aUserMembership.img}<img src="file/pic/membership/{$aUserMembership.img}" alt="" style="vertical-align:middle;" />{/if} <b>{$aUserMembership.title}</b><br /></font>
        </p>

        {if $sAction == 'success'}
        {language text="your_payment_was_sent_to_paypal_suc"}
        {elseif $sAction == 'cancel'}
        {language text="you_have_canceled_your_payment"}
        {else}
        	{$sIntro}
        	{foreach from=$aMemberships item=aItem}
        		{if $aItem.is_special == 0 AND $aUserMembership.title != $aItem.title}
        		    <div style="padding:10px;" class="color">
                    {if !$bStaff && !$bVisitor}
        		        <form action="{$sUrl}" method="post">
        		        	<input type="hidden" name="membership_id" value="{$aItem.membership_id}" />
        		        	<input type="hidden" name="act" value="btnPay" />
        		        	{if (not $aUserMembership.is_internal OR $bIsNormal) AND ($aItem.membership_id neq $iMembershipId)}
        		        	<input type="hidden" name="accept_now" value="1" />
        		        	{/if}
                    {/if}
        		            <div style="font-size:10pt;padding:8px;" class="border2">
        			            <img src="file/pic/membership/{$aItem.img}" alt="" />&nbsp;
        			            <b>{$aItem.title}</b><br />
        			            {if $aItem.price != '0.00'}
        		                <b> {language text="price"}: {$sCurrency} {$aItem.price} {if $aItem.pay_type eq 'monthly'}{language text="per_month"}{else}{language text="one_time_payment_678"}{/if}</b>
        		                <br />
        		                {/if}
        		                {$aItem.descr|nl2br}
        		                {if !$bStaff && !$bVisitor}        		               
                                <div class="border13" style="text-align:right; padding:4px; margin-top:10px;">
                                	<input type="submit" value="{if $aItem.price == '0.00'}Upgrade{else}Buy Now{/if}" style="cursor:pointer;" />
        		                </div>
        						{/if}
        		            </div>
        		        </form>
        		    </div>
        		{/if}
        	{/foreach}
        {/if}
    </td>
</tr>
</table>